<?php

/*

    MMetaverse - Open Metaverse Web Manager

    Copyright (c) 2009 Mary Jane Soft - Marlon J. Manrique

    http://www.maryjanesoft.com
    http://www.marlonj.com

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General
    Public License along with this library; if not, write to the
    Free Software Foundation, Inc., 59 Temple Place, Suite 330,
    Boston, MA  02111-1307  USA

    $Id$

*/

return array
(
    // Set Aplication Configuration
    'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
    'name' => 'MMetaverse Web Manager',
    'defaultController' => 'mmetaverse.site',

    // Original and target languages 
    'sourceLanguage'=>'en',
    //'language'=>'es',

    // Autoloading Components and Models
    'import' => array
    (
	'application.components.*',
        'application.models.*'
    ),

    // Theme Name
    'theme' => 'default',

    // application-level parameters that can be accessed
    // using Yii::app()->params['paramName']
    'params' => require(dirname(__FILE__).'/params.php'),

    // Preload 
    'preload'=>array('log'),
    
    // Components 
    'components' => array
    (
        // User Component 
        'user' => array
        (
            // Set Login Page 
            'loginUrl' => array('/'),
        ),
        // Logging Component
        'log' => array
        (
            'class' => 'CLogRouter',
            'routes' => array
            (
                array
                (
                    'class' => 'CFileLogRoute',
                    //'levels' => 'trace, info',
                    'categories' => 'application.*'
                )
            )
        ),
        // Databases
        'db' => array
        (
            'connectionString'=>'sqlite:protected/data/thunderz.db',
        ),
    )
);

?>
